<?php

use yii\db\Migration;

/**
 * Handles the creation of table `project_transfer_history`.
 */
class m170914_005054_create_project_transfer_history_table extends Migration
{
    /**
     * @inheritdoc
     * 项目流转记录表
     */
    public function up()
    {
        $this->createTable('project_transfer_history', [
            'id' => $this->bigPrimaryKey(),
            'project_id' => $this->bigInteger()->notNull()->comment('项目ID'),
            'transfer_date' => $this->string()->notNull()->comment('转让日期'),
            'transfer' => $this->string()->notNull()->comment('转让/处置方'),
            'content' => $this->text()->notNull()->comment('转让/处置内容'),
            'remark' => $this->text()->notNull()->comment('备注'),
            'order' => $this->bigInteger()->notNull()->comment('序号'),
        ]);
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropTable('project_transfer_history');
    }
}
